{% extends 'otree/WaitPage.html' %}
{% load otree %}
{% block title %}{{ title_text }}{% endblock %}
{% block content %}
    {{ body_text }}
    {% if group.round_number != 1 %}
        <p>上几轮你们各自要求的游戏币</p>
        <table class=table style="width: auto">
            <tr>
                <th>轮数</th>
                {#                {% for i in "1234567" %}#}
                {#                    <td value={{i}}> {{i}}</td>#}
                {#                {% endfor %}#}
                {% for i in game_round %}
                    <td value={{ i }}> {{ i }}</td>
                {% endfor %}
            </tr>
            <tr>
                <th>游戏币总数</th>
                {% for group in group.in_previous_rounds %}
                    <td>{{ group.point_pool }}</td>
                {% endfor %}
            </tr>
            <tr>
                <th>您要求的游戏币</th>
                {% for player in player.in_previous_rounds %}
                    {% if player.not_refer %}
                        <td>未提交</td>
                    {% else %}
                        {% if player.quit_game %}
                            <td>退出游戏</td>
                        {% else %}
                            <td>{{ player.request }}</td>
                        {% endif %}
                    {% endif %}
                {% endfor %}
            </tr>
            <tr>
                <th>分钱人A要求的游戏币</th>
                {% for player in pre_other_player2 %}
                    {% if player.not_refer %}
                        <td>未提交</td>
                    {% else %}
                        {% if player.quit_game %}
                            <td>退出游戏</td>
                        {% else %}
                            <td>{{ player.request }}</td>
                        {% endif %}
                    {% endif %}
                {% endfor %}
            </tr>
            <tr>
                <th>分钱人B要求的游戏币</th>
                {% for player in pre_other_player1 %}
                    {% if player.not_refer %}
                        <td>未提交</td>
                    {% else %}
                        {% if player.quit_game %}
                            <td>退出游戏</td>
                        {% else %}
                            <td>{{ player.request }}</td>
                        {% endif %}
                    {% endif %}
                {% endfor %}
            </tr>
            {#                <tr>#}
            {#                    <th>所有人总共要求的游戏币</th>#}
            {#                    {% for player in player.in_previous_rounds %}#}
            {#                    <td>{{ player.request }}</td>#}
            {#                    {% endfor %}#}
            {#                </tr>#}

        </table>

    {% endif %}
    {#    <p style="text-align: center">游戏流程</p>#}
    {#    <img src="{% static 'picture/introduct.jpg' %}" width="852" height="1186"/>#}
    {#    2137 2964#}
{% endblock %}
